﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Miris.HumanMilkAnalyser.WPF.Model;
using Miris.HumanMilkAnalyser.WPF.Shared;

namespace Miris.HumanMilkAnalyser.WPF.ViewModel
{
    public class UnassignedSampleNumberViewModel : MyViewModelBase
    {
        /// <summary>
        /// Initializes a new instance of the UnassignedSampleNumberViewModel class.
        /// </summary>
        public UnassignedSampleNumberViewModel(IDataService dataService)
            : base(dataService) { }

        /// <summary>
        /// The <see cref="SequenceNumber" /> property's name.
        /// </summary>
        public const string SequenceNumberPropertyName = "SequenceNumber";

        private int _sequenceNumber = 0;

        /// <summary>
        /// Sets and gets the SequenceNumber property.
        /// Changes to that property's value raise the PropertyChanged event. 
        /// </summary>
        public int SequenceNumber
        {
            get
            {
                return _sequenceNumber;
            }

            set
            {
                if (_sequenceNumber == value)
                {
                    return;
                }

                RaisePropertyChanging(SequenceNumberPropertyName);
                _sequenceNumber = value;
                RaisePropertyChanged(SequenceNumberPropertyName);
            }
        }

        /// <summary>
        /// The <see cref="SampleNumber" /> property's name.
        /// </summary>
        public const string SampleNumberPropertyName = "SampleNumber";

        private string _sampleNumber = string.Empty;

        /// <summary>
        /// Sets and gets the SampleNumber property.
        /// Changes to that property's value raise the PropertyChanged event. 
        /// </summary>
        public string SampleNumber
        {
            get
            {
                return _sampleNumber;
            }

            set
            {
                if (_sampleNumber == value)
                {
                    return;
                }

                RaisePropertyChanging(SampleNumberPropertyName);
                _sampleNumber = value;
                RaisePropertyChanged(SampleNumberPropertyName);
            }
        }

        /// <summary>
        /// The <see cref="GenerateDateDisplay" /> property's name.
        /// </summary>
        public const string GenerateDateDisplayPropertyName = "GenerateDateDisplay";

        private string _generateDateDisplay = string.Empty;

        /// <summary>
        /// Sets and gets the GenerateDateDisplay property.
        /// Changes to that property's value raise the PropertyChanged event. 
        /// </summary>
        public string GenerateDateDisplay
        {
            get
            {
                return _generateDateDisplay;
            }

            set
            {
                if (_generateDateDisplay == value)
                {
                    return;
                }

                RaisePropertyChanging(GenerateDateDisplayPropertyName);
                _generateDateDisplay = value;
                RaisePropertyChanged(GenerateDateDisplayPropertyName);
            }
        }
    }
}
